package com.juyu.miliao.scheduler.dao.mysql;

import com.juyu.miliao.common.domain.SanGuoGameRankingList;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Auther: 卜加超
 * @Date: 2019/8/6 16:55
 * @Description:
 */
@Component
public class SanGuoGameRankingListDao {
    @Resource
    private SqlSession sqlSession;

    public int saveWinBeansForSanGuo(SanGuoGameRankingList sanGuoGameRankingList){
       return sqlSession.insert("saveWinBeansForSanGuo",sanGuoGameRankingList);
    }
    public SanGuoGameRankingList selectWinBeansByUserId(Long userId){
       return sqlSession.selectOne("selectWinBeansByUserId",userId);
    }
    public int updateWinBeansForSanGuo(SanGuoGameRankingList sanGuoGameRankingList){
        return sqlSession.update("updateWinBeansForSanGuo",sanGuoGameRankingList);
    }
}
